<template>
  <div>
    <el-dialog v-bind="$attrs" v-on="$listeners" title="讲师">
      <el-row :gutter="15">
        <el-form
          ref="elForm"
          :model="dataForm"
          :rules="rules"
          size="small"
          label-width="110px"
          label-position="right"
          :disabled="disabled"
        >
          <el-col :span="12">
            <el-form-item label="教师编号" prop="">
              <el-input v-model="haha"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="姓名" prop="">
              <el-input v-model="haha"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="性别" prop="">
              <el-select v-model="haha">
                <el-option
                  v-for="(item, index) in getDict('sex')"
                  :key="index"
                  :label="item.dataName"
                  :value="item.id"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="居住地" prop="">
              <el-input v-model="haha"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="任职单位" prop="">
              <el-input v-model="haha"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="职务" prop="">
              <el-input v-model="haha"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="专业" prop="">
              <el-input v-model="haha"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="学历" prop="">
              <el-select v-model="haha">
                <el-option
                  v-for="(item, index) in getDict('Education')"
                  :key="index"
                  :label="item.dataName"
                  :value="item.id"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="学位" prop="">
              <el-select v-model="haha">
                <el-option
                  v-for="(item, index) in getDict('Education')"
                  :key="index"
                  :label="item.dataName"
                  :value="item.id"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="移动电话" prop="">
              <el-input v-model="haha"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="24">
            <el-form-item label="电子邮箱" prop="">
              <el-input v-model="haha"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="24">
            <el-form-item label="介绍" prop="">
              <el-input v-model="haha" type="textarea" rows="4"></el-input>
            </el-form-item>
          </el-col>
        </el-form>
      </el-row>
      <div slot="footer">
        <el-button @click="$emit('update:visible', false)">取 消</el-button>
        <el-button type="primary" @click="$emit('update:visible', false)"
          >确 定</el-button
        >
      </div>
    </el-dialog>
  </div>
</template>
<script>
export default {
  name: "",
  data() {
    return {
      haha: "哈哈",
      dataForm: {},
      rules: {},
      disabled: false,
    };
  },
  methods: {
    init(status, id) {
      status && (this.disabled = true);
    },
  },
};
</script>
<style scoped lang='scss'>
::v-deep .el-select > .el-input {
  width: 342px !important;
}
</style>